package com.ibiaoke.order.service;

import com.ibiaoke.common.base.Page;
import com.ibiaoke.order.entity.OrderAddress;
import com.ibiaoke.order.entity.vo.OrderAddressVO;

import java.util.List;

/**
 * Created by SuXin on 2017/6/22.
 */
public interface OrderAddressService {

    /**
     * 保存收货地址信息
     * @param orderAddressVO
     */
    int saveOrderAddress(OrderAddressVO orderAddressVO);

    /**
     * 更改收货地址信息
     * @param orderAddressVO
     */
    int updateOrderAddress(OrderAddressVO orderAddressVO);


    /**
     * 查询地址列表
     * @param customerId
     * @return
     */
    List<OrderAddress> listOrderAddress(Integer customerId);

    /**
     * 查询单个地址
     * @param addressId
     * @return  orderAddress
     */
    OrderAddress getOrderAddress(Integer addressId);

    /**
     * 删除收货地址
     * @param addressId */
    int deleteOrderAddress(Integer addressId);
}
